package mybag2;

public class User {
	// 创建一个User 类，包括：用户登录名（username）、密码（password）、用户真实姓
	// 名（name）、电子邮件地址（email）属性和相应的构造方法及setter/getter 方法。
	private String username;// 登录名
	private String password;
	private String name;// 真实姓名
	private String email;

	public User(String username, String password, String name, String email) throws Exception {
		super();
		this.setUsername(username);
		this.setPassword(password);
		this.setName(name);
		this.setEmail(email);
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) throws Exception {
		for (int i = 0; i < users.length; i++) {

		}
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

}
